package com.etime.perfectschool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etime.perfectschool.pojo.ActivitiesPhoto;
import com.etime.perfectschool.pojo.FoodPhoto;
import com.etime.perfectschool.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

//  美食图片表
@Repository
public interface FoodPhotoMapper extends BaseMapper<FoodPhoto> {
    //查询某条美食的全部照片
    List<FoodPhoto> getAllFoodPhotoByfoodId(int foodId);

    //删除美食所有图片
    int deleteFoodPhotoById(int foodId);

    //修改美食图片
    boolean updateFoodPhoto(FoodPhoto foodPhoto);
}
